import './assets/main.css'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
//引入初始化样式文件
import '@/styles/element/common.scss'

import App from './App.vue'
import router from './router'
import componentPlugin from './components'
//引入懒加载插件
import lazyPlugin from './directives'
const app = createApp(App)
//引入全局组件插件

const pinia =createPinia()
//注册持久化插件
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(componentPlugin)
app.use(createPinia())
app.use(router)
app.use(lazyPlugin)
app.mount('#app')
//定义全局指令

